class Te{
    public void test(){
        synchronized (this){
            //代码1
            //代码2
            //代码3
        }
    }
}
public class Thread2 {

}
